﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Category : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string cid = Request["cid"];
      //  Response.Write(cid);
        ItemDAO itemDAO = new ItemDAO();
        IList<Item> list = itemDAO.GetItem_by_CategoryID(Int32.Parse(cid));
        
        datalist_Categories.DataSource = list;
        datalist_Categories.DataBind();

    }
}